home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 28
/
028.d81
/
t.guess number
< prev
next >
Wrap
Text File
|
2022-08-26
|
2KB
|
125 lines
GUESS THE NUMBER
by
Michael Keryan
COMMODORE MICROCOMPUTERS MAGAZINE
September/October, 1986
The premise of this novelty program
sounds a little strange at first.
Essentially, you and a friend try to
guess a randomly-generated number.
That's it. Whoever gets the number
right wins.
Call us spoiled, but it sounds a
little like watching ice melt to us.
Of COURSE there's a twist. The game
is rather ingeniously rigged,
allowing you to feign great powers of
clairvoyance. You see, the disk drive
light blinks the answer. All you have
to do is make sure you know the code.
You first choose between the easy
mode, in which the answers are
integers from 1 to 10, and the hard
mode, in which the answers range from
-99.9 to +99.9. Press RETURN and the
computer will generate a number, then
flash it to you via the disk drive
light.
How do you read the disk drive
light? For digits one through nine,
the light will blink the appropriate
number of times using medium length
pulses. A zero digit is one short
blink. A single long blink represents
a decimal point; a sequence of five
rapid blinks signifies the answer is a
negative number.
For numbers greater than nine, the
disk light will blink a number of
times for the number in the "tens"
place, pause, then blink the number
in the "ones" place. If the answer
were "-60.3", the disk drive light
would:
-- flash five times rapidly,
(to signify a negative number)
-- blink six times,
(for the 6 in the tens place)
-- pause,
(wait for next digit)
-- flash once QUICKLY,
(for the zero in the ones place)
-- blink one long blink,
(signifying the decimal point)
-- and, finally, blink three times.
(for the final digit, 3)
Got the picture? Now you're all
ready to astound your friends. Just
try not to be TOO obnoxious, OK?
DISK FILES THIS PROGRAM USES:
GUESS NUMBER
-----------< end of text >------------